# Maintainer: Carsten Haitzler <raster@archlinux.org>

pkgname=evisum
pkgver=0.6.0
pkgrel=1
pkgdesc="EFL Process viewer"
arch=('loong64' 'x86_64')
url="https://www.enlightenment.org"
license=('BSD')
depends=('efl')
makedepends=('meson' 'ninja')
source=("https://download.enlightenment.org/rel/apps/${pkgname}/${pkgname}-${pkgver}.tar.xz")
sha256sums=('256062cfeb6dc1779cbd7c3fe6b958e1a2d0bd6209814dcdbcc032086ecde3c6')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"

  export CFLAGS="${CFLAGS} -fvisibility=hidden"
  meson build --prefix=/usr
  ninja -C build
}

package(){
  cd "${srcdir}/${pkgname}-${pkgver}"

  DESTDIR="${pkgdir}" ninja -C build install

  # install license files
  install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname/" AUTHORS
}
